<?
/**
 * VoiceOne Webservices Declarations
 *  
 * @package voiceone_webservices
 * @subpackage Contacts
 */
// ---- contact ----------------------------------------------------------------
$server->wsdl->addComplexType(
    'contact',
    'complexType',
    'struct',
    'all',
    '',
    array(
        'id'            => array('name'=>'id',         'type'=>'xsd:int'),
        'id_user'       => array('name'=>'id_user',    'type'=>'xsd:int'),
        'name'          => array('name'=>'name',       'type'=>'xsd:string'),
        'surname'       => array('name'=>'surname',    'type'=>'xsd:string'),
        'company'       => array('name'=>'company',    'type'=>'xsd:string'),
        'email'         => array('name'=>'email',      'type'=>'xsd:string'),
        'read'          => array('name'=>'phone_type', 'type'=>'xsd:int'),
        'write'         => array('name'=>'write',      'type'=>'xsd:int'),
        'phonenumber'   => array('name'=>'phonenumber','type'=>'xsd:string'),
        'mobile'        => array('name'=>'mobile',     'type'=>'xsd:string'),
        'phonenumber_speed_id' 	=> array('name'=>'phonenumber_speed_id', 'type'=>'xsd:int'),
        'phonenumber_speed_ext'	=> array('name'=>'phonenumber_speed_ext','type'=>'xsd:string'),
        'mobile_speed_id' 		=> array('name'=>'mobile_speed_id',		'type'=>'xsd:int'),
        'mobile_speed_ext' 		=> array('name'=>'mobile_speed_ext',	'type'=>'xsd:string'),
        'phonenumber_on_cid' 	=> array('name'=>'phonenumber_on_cid','type'=>'xsd:int'),
        'mobile_on_cid'    		=> array('name'=>'mobile_on_cid', 		'type'=>'xsd:int'),
        'order_by' 						=> array('name'=>'order_by', 					'type'=>'xsd:string'),
        'cid_name' 						=> array('name'=>'cid_name', 					'type'=>'xsd:string'),
        'groups'        => array('name'=>'groups',     'type'=>'tns:contactGroupArray')
    )
);
// ---- contact[] --------------------------------------------------------------
$server->wsdl->addComplexType(
    'contactArray',
    'complexType',
    'array',
    '',
    'SOAP-ENC:Array',
    array(),
    array(
        array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:contact[]')
    ),
    'tns:contact'
);
// ---- contactGroup -----------------------------------------------------------
$server->wsdl->addComplexType(
    'contactGroup',
    'complexType',
    'struct',
    'all',
    '',
    array(
        'id'          => array('name'=>'id',         'type'=>'xsd:int'),
        'name'        => array('name'=>'name',       'type'=>'xsd:string'),
        'entity'      => array('name'=>'entity',     'type'=>'tns:intArray')
    )
);
// ---- contactGroup[] ---------------------------------------------------------
$server->wsdl->addComplexType(
    'contactGroupArray',
    'complexType',
    'array',
    '',
    'SOAP-ENC:Array',
    array(),
    array(
        array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:contactGroup[]')
    ),
    'tns:contactGroup'
);
// ---- contactList ------------------------------------------------------------
$server->wsdl->addComplexType(
    'contactLite',
    'complexType',
    'struct',
    'all',
    '',
    array(
        'id'            => array('name'=>'id',         'type'=>'xsd:int'),
        'id_user'       => array('name'=>'id_user',    'type'=>'xsd:int'),
        'name'          => array('name'=>'name',       'type'=>'xsd:string'),
        'write'         => array('name'=>'write',      'type'=>'xsd:int'),
        'phonenumber'   => array('name'=>'phonenumber','type'=>'xsd:string'),
        'mobile'        => array('name'=>'mobile',     'type'=>'xsd:string')
    )
);
// ---- contactList[] ----------------------------------------------------------
$server->wsdl->addComplexType(
    'contactListArray',
    'complexType',
    'array',
    '',
    'SOAP-ENC:Array',
    array(),
    array(
        array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:contactList[]')
    ),
    'tns:contactList'
);
?>